<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="public::head('修改密码')">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8"></meta>

</head>
<body style="padding-top: 50px;">
	<input type="hidden" th:value="${session.Id}" id="id" />

	<div th:replace="public/top_vote::top"></div>
	<form class="form-horizontal col-sm-12" role="form">
		<div id="Adminlist">

			<div class="primary-title"></div>

			<div class="primary-content">
				<div style="text-align: center;">

					<div class="form-group" >
						<label class="col-sm-4 control-label"><span
							class="required">*</span>登录账号</label>
						<div class="col-sm-4">
							<input  disabled="disabled" type="text" class="form-control" autofocus
								v-model='user.account' id="account" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-4 control-label"><span
							class="required">*</span>登录密码</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" autofocus
								v-model='user.password' id="password" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-4 control-label"><span
							class="required">*</span>重复密码</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" autofocus
								v-model='user.againpassword' id="againpassword" />
						</div>
					</div>

					<div class="form-group">
						<div class="col-sm-12" style="text-align: center;">
							<input v-if="editFlag==1" type="button" class="btn btn-primary"
								v-on:click="modifypsw();" value="修改" />

						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</body>

<script th:src="@{/js/main/modifypassword.js}"></script>

<script type="text/javascript">
	var ID = $("#id").val();
	$(function() {
		if (ID == "") {
			alert("请先登录！");
			location.href = '../manage/login';
		}
	});
</script>
</html>